unless Rails.version.split('.')[0].to_i < 3
  require 'template_wrapper'
  require 'rails'
  module TemplateWrapper
    class Railtie < Rails::Railtie
      rake_tasks do
      
      Dir[File.join(File.dirname(__FILE__),'tasks/*.rake')].each { |f| load f }
        #require 'template_wrapper/lib/tasks/template_wrapper.rake'
      end
    end
  end
end